package vista;

import java.awt.Graphics;

import javax.swing.ImageIcon;
import javax.swing.JPanel;


public class PanelImagenTestigo extends JPanel{

	private static final long serialVersionUID = -466721074024228084L;
	private String iconoTestigo;
	
	public PanelImagenTestigo (String testigo){
		iconoTestigo = testigo;
	}
	public void paintComponent(Graphics g){
		
        ImageIcon imagen = new ImageIcon(iconoTestigo);
        g.drawImage(imagen.getImage(),0,0,imagen.getIconWidth(),imagen.getIconHeight(),null);
        setOpaque(false);
	} 
}
